<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.Vector,java.util.ArrayList,com.ejoysoft.wlanyz.business.Carriers,com.ejoysoft.wlanyz.business.Ac,com.ejoysoft.common.Constants,com.ejoysoft.wlanyz.system.SysUserUnit,com.ejoysoft.common.exception.NoRightException,com.ejoysoft.common.exception.IdObjectException" %>
<%@ include file="../include/jsp/head.jsp"%>

<%try{
%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
    String strIds = ParamUtil.getString(request,"strId","");
    if(strIds.equals(""))
    	throw new IdObjectException("请求处理的信息id为空！或者已经不存在");
	String str[]= strIds.split(",");
	String tWhere=" where 1=1 ";
	for (int i=0;i<str.length;i++)
	{
	tWhere += " or strCommId = " +str[i]+" ";
	}
    
	Carriers user0 = null;
	Carriers obj = new Carriers(globa);
	//查询条件
	
	//记录总数
	int intAllCount = obj.getCount2(tWhere);
	//当前页
	int intCurPage = globa.getIntCurPage();
	//每页记录数
	int intPageSize = globa.getIntPageSize();
	//共有页数
	int intPageCount = (intAllCount - 1) / intPageSize + 1;
	// 循环显示一页内的记录 开始序号
	int intStartNum = (intCurPage - 1) * intPageSize + 1;
	//结束序号
	int intEndNum = intCurPage * intPageSize;
	//获取到当前页面的记录集
	Vector<Carriers> vctObj = obj.listcomunity(tWhere, intStartNum, intPageSize);
	//获取当前页的记录条数
	int intVct = (vctObj != null && vctObj.size() > 0 ? vctObj.size()
			: 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=application.getAttribute("APP_TITLE")%></title> 
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../include/date/popc.js"></script>
<script src="../include/js/list.js"></script>
<script language="javascript">
//增加信息


 function showAc(){
   document.getElementById('<%=Constants.PAGE_SIZE_INDEX%>').value= "1";
  frm.submit();
 }


</script>
</head>



<body>
<form name=frm method=post action="carriers_near.jsp"> 
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="bottom" />&nbsp;您现在所在的位置：<font color="#0e7cc9">运行商对比分析</font> &gt; 小区信息管理</td>
  </tr>
</table>


<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    
    <td width="16%" class="listtit">地市</td>
    <td width="13%" class="listtit">区县</td>
    <td width="16%" class="listtit">小区名</td>
    <td width="16%" class="listtit">小区站型</td>
    <td width="16%" class="listtit">LAC</td> 
    <td width="16%" class="listtit">CI</td> 
  </tr>
    <%
    	for (int i = 0; i < vctObj.size(); i++) {
    		String strcity = "";
    		String strtown = "";
    		String siteName = "";
    		String sitetype = "";
    		String lac = "";
    		String ci = "";
    		Carriers obj3 = vctObj.get(i);
    		if (obj3.getStrcity1() != null)
    			strcity = obj3.getStrcity1();
    		if (obj3.getStrtown1() != null)
    			strtown = obj3.getStrtown1();
    		if (obj3.getStrSiteName() != null)
    			siteName = obj3.getStrSiteName();
    		if (obj3.getStrSiteType() != null)
    			sitetype = obj3.getStrSiteType();
    		if (obj3.getStrLac() != null)
    			lac = obj3.getStrLac();
    		if (obj3.getStrCI() != null)
    			ci = obj3.getStrCI();
    %>

  <tr>
  	
    <td class="listd1" style="border-left:1px solid #dddddd;"> <%=strcity%>&nbsp;</td>
    <td class="listd1"><%=strtown%>&nbsp;</td>
    <td class="listd1"><%=siteName%>&nbsp;</td>
    <td class="listd1"><%=sitetype%>&nbsp;</td>
    <td class="listd1"><%=lac%>&nbsp;</td>
    <td class="listd1"><%=ci%>&nbsp;</td>
     </tr>
             <%
             	}
             	
             %>
</table>

<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width = "15%"><input type="button"  onclick="window.location.href='carriers_list.jsp';" value="返 回" class="ipt2" style="cursor:hand"/></td>
    <td width="39%" align="right" valign="bottom">            <!-- 翻页开始 -->  
     	<%@ include file="../include/jsp/cpage.jsp"%>
       	<!-- 翻页结束 --> </td>
  </tr>
</table><div align="center"> 
 
 
 
 
 </div></form>
</body>
</html>
<%     	}catch (Exception e) {
            e.printStackTrace();        
        } %>
<%@ include file="../include/jsp/footer.jsp"%>